package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tycsj entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYCSJ", schema = "YXJF")
public class Tycsj implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tuser tuserByCuserid;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Tkind tkind;
	private String cbh;
	private Integer csbyf;
	private String czh;
	private String cyy;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;
	private Double cye;
	private String ckhj;
	private Integer ccq;

	// Constructors

	/** default constructor */
	public Tycsj() {
	}

	/** minimal constructor */
	public Tycsj(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Tycsj(String cid, Tuser tuserByCcreateuserid, Tuser tuserByCuserid, Tdept tdept, Tuser tuserByCmodifyuserid, Tkind tkind, String cbh, Integer csbyf, String czh, String cyy, Timestamp ccreatedate, Timestamp cmodifydate, Double cye, String ckhj, Integer ccq) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tuserByCuserid = tuserByCuserid;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.tkind = tkind;
		this.cbh = cbh;
		this.csbyf = csbyf;
		this.czh = czh;
		this.cyy = cyy;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
		this.cye = cye;
		this.ckhj = ckhj;
		this.ccq = ccq;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CUSERID")
	public Tuser getTuserByCuserid() {
		return this.tuserByCuserid;
	}

	public void setTuserByCuserid(Tuser tuserByCuserid) {
		this.tuserByCuserid = tuserByCuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CKINDID")
	public Tkind getTkind() {
		return this.tkind;
	}

	public void setTkind(Tkind tkind) {
		this.tkind = tkind;
	}

	@Column(name = "CBH", length = 20)
	public String getCbh() {
		return this.cbh;
	}

	public void setCbh(String cbh) {
		this.cbh = cbh;
	}

	@Column(name = "CSBYF", precision = 8, scale = 0)
	public Integer getCsbyf() {
		return this.csbyf;
	}

	public void setCsbyf(Integer csbyf) {
		this.csbyf = csbyf;
	}

	@Column(name = "CZH", length = 20)
	public String getCzh() {
		return this.czh;
	}

	public void setCzh(String czh) {
		this.czh = czh;
	}

	@Column(name = "CYY", length = 100)
	public String getCyy() {
		return this.cyy;
	}

	public void setCyy(String cyy) {
		this.cyy = cyy;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

	@Column(name = "CYE", precision = 13)
	public Double getCye() {
		return this.cye;
	}

	public void setCye(Double cye) {
		this.cye = cye;
	}

	@Column(name = "CKHJ", length = 8)
	public String getCkhj() {
		return this.ckhj;
	}

	public void setCkhj(String ckhj) {
		this.ckhj = ckhj;
	}

	@Column(name = "CCQ", precision = 5, scale = 0)
	public Integer getCcq() {
		return this.ccq;
	}

	public void setCcq(Integer ccq) {
		this.ccq = ccq;
	}

}